import http from './http'

export function listProducts(params) {
  // params: { page, size, sortBy, sortOrder, name }
  return http.get('/api/products', { params })
}

export function deleteProduct(id) {
  return http.delete(`/api/products/${id}`)
}

export function createProduct(payload) {
  // payload: { name, version, vendor, packageManager }
  return http.post('/api/products', payload)
}

